package com.motorhome.h5.dao.impl;

import com.motorhome.base.dao.impl.BaseDaoImpl;
import com.motorhome.h5.dao.VipDao;
import com.motorhome.h5.domain.Vip;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: John
 */
@Repository
public class VipDaoImpl extends BaseDaoImpl implements VipDao {

    @Override
    public List<Vip> getVipList() {
        return query("select id,name,rate from m_vip", new BeanPropertyRowMapper<Vip>(Vip.class));
    }

}
